<html>
<body>

<?php
echo "Hello World";


//to log on
$url = 'http://www.tv-links.eu/'; // The URL to the accountmanagement page
$f1 = 'Email'; // Name of field1(ON THE WEBSITE YOU'RE TRYING TO LOGIN ON!)
$f2 = 'Passwd'; // Name of field2(ON THE WEBSITE YOU'RE TRYING TO LOGIN ON!)
$v1 = $_POST['kairen09']; // Value of field1(FROM THE WEBSITE YOU'RE TRYING TO LOGIN FROM!)
$v2 = $_POST['180232Tkr']; // Value of field2(FROM THE WEBSITE YOU'RE TRYING TO LOGIN FROM!)
$find = 'Unread'; // String to search for in the page you've logged in on
$postchars = http_build_query( array($f1 => $v1, $f2 => $v2) );

$stream = stream_context_create( array('http' => array('method' => 'POST', 'header'  => 'Content-Type: application/x-www-form-urlencoded', 'content' =>  htmlspecialchars_decode( $postchars ) ) ) ); // Creates an array of the sourcecode, and inputs the values of the field1 and field2

$content = file_get_contents($url, false, $stream); // Gets the sourcecode from the new page that is loaded after the input of the values.

$search = strpos($content, $find); // Search the sourcecode for the specific string in the variable "find"

if($search === false){
echo 'The login seems to be incorrect. Please try again, or check if you have a valid account';
} // If the string wasn't found
else {
echo 'Your account is valid!';
}  // If the string was found 

$source = file_get_contents("https://mail.google.com/mail/ca/u/0/?shva=1");
$startPos = stripos($source, "<div class=\"cfix pb_1\">");
$test = substr($source, $startPos, 25);

?>

<style>
#outerdiv {
width: 25px; position: relative;
}
#innerdiv {
position: absolute; left: -320px; top: -220px;clip:rect(600px 600px 600px 600px);
}
</style>

<div id="outerdiv">
<div id="innerdiv">      
<iframe width="600" height="660" src="http://en.wikipedia.org/wiki/Tutankhamun" scrolling="no" frameborder="0"></iframe>
</div>
</div>


</body>
</html>